<template>
  <div>
    <el-button type="primary" @click="search">查询（一年级）</el-button>
    <tl-tabs :tabList="tabList"></tl-tabs>
  </div>
</template>

<script>
import child from './child.vue'

export default {
  components: { child },
  provide() {
    return {
      form: this.form,
    }
  },
  data() {
    return {
      form: {
        str: '',
        page: 1,
        size: 10,
      },
      tabList: [
        { label: '一年级一班', component: child, props: { msg: '一年级一班' } },
        { label: '一年级二班', component: child, props: { msg: '一年级二班' } },
      ],
    }
  },
  methods: {
    search() {
      console.log('查询（一年级）')
    },
  },
}
</script>

<style scoped>
</style>